package com.siterwell.push.entity;


import java.util.HashMap;

public class ResponseModel {

	private static HashMap<String,Object> model=null;
	
	private ResponseModel() {}
	
	public static HashMap<String, Object> getModel(long code,String msg,Object data){
		model = new HashMap<String, Object>();
		model.put("code", code);
		model.put("msg", msg);
		model.put("data", data);
		return model;
	}
	
	public static HashMap<String, Object> getModel(ResultEnum resultEnum,Object data){
		model = new HashMap<String, Object>();
		model.put("code", resultEnum.getCode());
		model.put("msg", resultEnum.getMsg());
		model.put("data", data);
		return model;
	}


}
